
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class ModulePage extends StatelessWidget {
  const ModulePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("ModulePage"),
        centerTitle: true,
        leading: IconButton(onPressed: () {
          context.pop();
        }, icon: Icon(Icons.arrow_back_ios_rounded)),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            ElevatedButton(
              onPressed: () => context.push('/module/overlay'),
              child: const Text('Overlay'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/layoutBuilder'),
              child: const Text('LayoutBuilder'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/interactiveViewer'),
              child: const Text('InteractiveViewer'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/channel/method'),
              child: const Text('MethodChannel'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/channel/event'),
              child: const Text('EventChannel'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/channel/basicChannel'),
              child: const Text('BasicMessageChannel'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/platformView'),
              child: const Text('platformView'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/module/scrollerView'),
              child: const Text('scrollerView'),
            ),
          ],
        ),
      ),
    );
  }
}
